﻿{include file="public/header" /}
			<form method="post">
				<div class="panel admin-panel">
					<div class="panel-head"><strong>{:lang('currency')['list']}</strong></div>
					<div class="padding border-bottom">
						<script>
						//city 参数和回调
						var gid="{:input('get.gid')}";
						var cateid="{:input('get.cateid')}";
						var selectc=true;
						var selecta=false;
						function select_g(){
							location.href="{:url('/admin/service')}?gid="+gid;
						}
						function select_c(){
							location.href="{:url('/admin/service')}?gid="+gid+"&cateid="+cateid;
						}
						</script>
						<input type="button" class="button button-small checkall" name="checkall" checkfor="id" value="{:lang('currency')['all_select']}" />
						<a type="button" class="button button-small border-green" href="service/edit.html" />{:lang('currency')['add']}</a>
						<a id="select_del" type="button" class="button button-small border-red" href="#" />{:lang('currency')['del']}</a>
						---{include file="public/category" /}
					</div>
					<table class="table table-hover">
						<tr>
							<th width="60">{:lang('label')['select']}</th>
							<th width="120">{:lang('label')['seller']}</th>
							<th width="120">{:lang('label')['category']}</th>
							<th width="120">{:lang('label')['title']}</th>
							<th width="200">{:lang('label')['price']}</th>
							<th width="200">{:lang('label')['service']}</th>
							<th width="100">{:lang('label')['status']}</th>
							<th width="50">{:lang('label')['handle']}</th>
						</tr>
						{volist name="data" id="service"}
						<tr>
							<td >
								<input type="checkbox" name="id" value="{$service.id}" />
							</td>
							<td style="line-height:40px">{$service.uid}</td>
							<td style="line-height:40px">{$service.cateid}</td>
							<td style="line-height:40px">{$service.title}</td>
							<td style="line-height:40px">{$service.price}</td>
							<td style="line-height:40px">{$service.service}</td>
							<td style="line-height:40px">{if $service.status == "1"}<span class="icon-check text-sub">{:lang('currency')['status_1']}</span>{else}<span class="icon-times text-dot">{:lang('currency')['status_2']}</span>{/if}</td>
							<td style="line-height:40px"><a class="button border-blue button-little" href="service/edit.html?id={$service.id}">{:lang('currency')['edit']}</a> <a class="button border-red button-little" href="service/del.html?id={$service.id}&page={:input('get.page')}" onclick="if(confirm('{:lang('currency')['del']}?')){return true;}return false;">{:lang('currency')['del']}</a> <a class="button border-green button-little" href="service/comment.html?id={$service.id}">{:lang('currency')['comment']}</a></td>
						</tr>
						{/volist}
					</table>
					{include file="public/pages" /}
				</div>
			</form>
			<script>
			$('#select_del').click(function(){
				var str=""; 
				$("input:checkbox[name=id]:checked").each(function(){ 
					str+=$(this).val()+",";
				});
				if(str!=''){
					if(confirm('{:lang('currency')['del']}?')){location.href='{$Request.controller}/del.html?id='+str;}	
				}
			});
			</script>
{include file="public/footer" /}